home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1997
/
MacHack 1997.toast
/
Hacks
/
Hacks ’97
/
Warrior’s Progress
/
source code
/
Source
/
Libraries
/
Drawing
/
ScreenLoop.cp
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1997-06-28
|
323 b
|
24 lines
|
[
TEXT/CWIE
]
// ScreenLoop.cp
#ifndef ScreenLoop_h
#include "ScreenLoop.h"
#endif
ScreenLoop::ScreenLoop()
{
Advance();
}
void ScreenLoop::operator++()
{
device++;
Advance();
}
void ScreenLoop::Advance()
{
for ( ; device.Unfinished(); device++ )
if ( (*device).ScreenActive() && (*device).IsScreen() )
break;
}